# 导包
# from api import  login
from api.login import login
# 定义函数
test_data = [
{"username": "13488888888", "password": "123456"},
{"username": "", "password": "123456"}
]
# 遍历
for i in  test_data:
    phone=i["username"]
    # print(phone)
    pwd=i["password"]
    # print(pwd)
    # 调用登录函数
    rst=login(phone)
    print(rst)
    # 断言
    if phone=="13488888888":
        assert "账号成功"==rst
        # assert "账号错误2" == rst
